import request from '@/utils/request'

// 查询产品方案列表
export function listProductSolutions(query) {
  return request({
    url: '/insurance/productSolutions/list',
    method: 'get',
    params: query
  })
}

// 查询产品方案详细
export function getProductSolutions(id) {
  return request({
    url: '/insurance/productSolutions/' + id,
    method: 'get'
  })
}

// 新增产品方案
export function addProductSolutions(data) {
  return request({
    url: '/insurance/productSolutions',
    method: 'post',
    data: data
  })
}

// 修改产品方案
export function updateProductSolutions(data) {
  return request({
    url: '/insurance/productSolutions',
    method: 'put',
    data: data
  })
}

// 删除产品方案
export function delProductSolutions(id) {
  return request({
    url: '/insurance/productSolutions/' + id,
    method: 'delete'
  })
}

// 导出产品方案
export function exportProductSolutions(query) {
  return request({
    url: '/insurance/productSolutions/export',
    method: 'get',
    params: query
  })
}